package com.tianyi.dao.entity.role;

import java.io.Serializable;
import java.util.Date;

public class Role implements Serializable {
    /**
     * id
     * 表字段 ：id
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    private Long id;

    /**
     * 表字段 ：gmt_create
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    private Date gmtCreate;

    /**
     * 表字段 ：gmt_modified
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    private Date gmtModified;

    /**
     * 角色名
     * 表字段 ：role_name
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    private String roleName;

    /**
     * 权重
     * 表字段 ：role_level
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    private Integer roleLevel;

    /**
     * 权限code
     * 表字段 ：role_code
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    private String roleCode;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table role
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    public Role withId(Long id) {
        this.setId(id);
        return this;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    public Role withGmtCreate(Date gmtCreate) {
        this.setGmtCreate(gmtCreate);
        return this;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    public Role withGmtModified(Date gmtModified) {
        this.setGmtModified(gmtModified);
        return this;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getRoleName() {
        return roleName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    public Role withRoleName(String roleName) {
        this.setRoleName(roleName);
        return this;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public Integer getRoleLevel() {
        return roleLevel;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    public Role withRoleLevel(Integer roleLevel) {
        this.setRoleLevel(roleLevel);
        return this;
    }

    public void setRoleLevel(Integer roleLevel) {
        this.roleLevel = roleLevel;
    }

    public String getRoleCode() {
        return roleCode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    public Role withRoleCode(String roleCode) {
        this.setRoleCode(roleCode);
        return this;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode == null ? null : roleCode.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role
     *
     * @mbg.generated Wed Jun 24 13:36:54 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", roleName=").append(roleName);
        sb.append(", roleLevel=").append(roleLevel);
        sb.append(", roleCode=").append(roleCode);
        sb.append("]");
        return sb.toString();
    }
}